<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8'>
        <title></title>
        <style>
        </style>
    </head>
    <body>

    </body>
</html>
<script>
    function sum(name,...nums){
        let result=0;
        for(let val of nums){
            result+=val
        }
        return result
    }
    sum('张三',10,12,10);
    console.log(sum('张三',10,12,10))
</script>